Ext.define('Gigi.model.Authority', {
	extend : 'Ext.data.Model',

	fields : [ 'code', 'description' ],

	idProperty : 'code',

	proxy: {
		type: 'rest',
		url : contextPath+'sec/authority',
		reader: {
			type: 'json',
			root: 'data',
			idProperty: 'code'
		},
		simpleSortMode: true
	}
});